<?php
/**
 * Created By virus_cms
 * Author: Virus
 * Date: 2020/3/3
 * Time: 15:11
 */

namespace app\admin\validate;


use think\Validate;

class GroupValidate extends Validate
{
    protected $rule = [
        'title'  => 'require',
        'status' => 'require|number|integer',
    ];

    protected $message = [
        'title'          => '角色名称必须',
        'status.require' => '状态必须选择',
        'status.number'  => '状态值为数字',
        'status.integer' => '状态值为整型',
    ];
}